package myapp.advancedapp;

import android.content.Intent;
import android.view.View;

import java.util.ArrayList;

import myapp.framelibrary.ImageSelectActivity;
import myapp.framelibrary.base.BaseSkinActivity;

/**
 * Created by 超 on 2017/7/18.
 */

public class TextActivity extends BaseSkinActivity {

    private View viewById;
    private ArrayList<String> pathList;
    @Override
    protected void initEvent() {
        viewById.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent  = new Intent(TextActivity.this, ImageSelectActivity.class);
                intent.putExtra(ImageSelectActivity.EXTRA_SELECT_COUNT,9);
                intent.putExtra(ImageSelectActivity.EXTRA_SELECT_MODE,ImageSelectActivity.MODE_MULTI);
                intent.putExtra(ImageSelectActivity.EXTRA_SHOW_CAMERA,true);
                intent.putExtra(ImageSelectActivity.EXTRA_DEFAULT_SELECTED_LIST,pathList);
                startActivity(intent);

            }
        });
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initView() {
        viewById = findViewById(R.id.btn);
    }

    @Override
    protected int getContentView() {
        return R.layout.activity_text;
    }

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        if (requestCode == RESULT_OK){
            ArrayList<String> mResultList = data.getStringArrayListExtra(ImageSelectActivity.EXTRA_RESULT);
        }


    }
}
